<?php
namespace app\user\validate;
use think\Validate;
class user extends Validate {

    protected $rule =   [
        'id'  =>['require','number'],
        'account_id'=>['require','number'],
    ];

    protected $message  =   [
        'id.require' => '名称必须',
        'id.number' => '名称必须数字',
        'account_id.require'=>'账户id必须',
        'account_id.number'=>'账户id必须数字'
    ];

    protected $scene = [
        'edit'  =>  ['id'],
        'info'  =>  ['token'],
        'info_by_token'=>[''],
    ];
}
